package com.jdd.fintech.morse.plugin.constans;

/**
 * @Description: OpenApi 常量类
 * @Author: fengcheng
 * @Date: 2021/6/17
*/
public class OpenApiConstans {
    public static final String TENANTID = "tenantId";
    public static final String COMPANYID = "companyId";
    public static final String ORGCODE = "orgCode";
    //网贷产品编号
    public static final String PRODUCTCODE = "prdCode";
    //请求头
    public static final String REQUEST_DATA_KEY = "requestData";
    public static final String RESPONSE_DATA_KEY = "responseData";
    //平安惠普
    public static final String PA_DATA_CONTENT_KEY = "infoContent";
    //平安惠普
    public static final String SYSSIGN = "sysSign";
    public static final String SLASH = "/";


    //AES_ECB:电码本模式（AES: 默认加密模式）
    public static final String AES_ECB_ENCRYPT_MODE = "AES/CBC/PKCS5Padding";
    //通用
    public static final String AES_CBC_ENCRYPT_MODE = "PKCS5Padding";
    //DES(默认加密模式)
    public static final String DES_ENCRYPT_MODE = "DES/CBC/PKCS5Padding";
    //TRIPLE_DES(默认加密模式)
    public static final String TRIPLE_DES_ENCRYPT_MODE = "DESede/ECB/PKCS5Padding";
    //SM4(默认加密模式)
    public static final String PROVIDER_NAME_KEY = "BC";
    public static final String ALGORITHM_NAME_CBC_PADDING = "SM4/CBC/PKCS5Padding";
    //加密模式_ECB
    public static final String ENCRYPT_MODE_ECB = "ECB";
    //加密模式_CBC
    public static final String ENCRYPT_MODE_CBC = "CBC";
    //加密模式_CTR
    public static final String ENCRYPT_MODE_CTR = "CTR";
    //定制化版本:G金条,MS morse标准化
    public static final String CUSTOMVERSION_KEY = "customVersion";
    //DES加密算法——默认使用的密钥长度
    public static final int AES_SECRET_KEY_LENGTH = 16;
    //TRIPLE_DES加密算法——默认使用的密钥长度
    public static final int TRIPLE_DES_SECRET_KEY_LENGTH = 24;

    //SM4密钥长度
    public static final int SM4_SECRET_KEY_LENGTH = 128;
    //最大密钥长度
    public static final int MAX_KEY_SECRET_KEY_LENGTH = 256;

    public static final String DATA_IS_NULL = "请求数据为空,不进行加解密操作！";
    public static final String RESPONST_IS_NULL = "响应数据为空,不进行加解密操作！";

    public static final String ACCESS_TOKEN_KEY = "access_token";
    //应用ID
    public static final String CLIENT_ID_KEY = "client_id";
    //token有效期（单位为分钟）
    public static final String EXPIRES_IN = "expires_in";
    public static final String DATA_KEY = "data";
    public static final String RET_KEY = "ret";
    public static final String HTTP_KEY = "HTTP";

    public static final String POST_KEY = "POST";
    public static final String GET_KEY = "GET";
    public static final String REMOTETOKEN_KEY = "remoteToken";
    public static final String TOKENCONFIG_KEY = "tokenConfig";

    //云工厂
    public static final String YGC_DATA_SIGN_KEY = "sign";
    public static final String YGC_DATA_CONTENT_KEY = "bizContent";
    public static final String HEADER_VERSION_VALUE = "1.0.0";
    public static final String YGC_SECRET_KEY = "secret-key";
    public static final String YGC_ENCRYPT_ALG = "encrypt-alg";
    public static final String YGC_SIGN_ALG = "sign-alg";
    public static final String YGC_SIGN = "sign";
    public static final String YGC_TIMESTAMP = "timestamp";
    public static final String WD_PUBLIC_KEY = "wdPublicKey";
    public static final String WD_PRIVATE_KEY = "wdPrivateKey";
    public static final String PRIVATE_KEY_PFX_PATH = "/export/server/phevos-gateway-server-1.1.98/config/";
    public static final String WD_PRIVATE_KEY_PFX = "wdPrivateKey.pfx";
    //云工厂
}
